package com.itwn.email.consumer.e_topic;

import com.itwn.email.producer.d_direct.DirectConfig;
import com.itwn.email.producer.e_topic.TopicConfig;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class TopicConsumer2 {


    @RabbitListener(queues = TopicConfig.TOPIC_QUEUE2)
    public void getMessage(String msg ){
        System.out.println("TopicConsumer2 收到消息："+msg);
    }
}
